package com.lo23.data.serializable;

import java.io.Serializable;
import com.lo23.data.objpicture.Album;



public class AlbumCom implements Serializable {

	private static final long serialVersionUID = -4181790476243794968L;
	
	public String aID;
	public String name;
	public String description;
	public PictureCom albumPic;
	public String owner;

	public AlbumCom(Album alb, String uid){
		owner = uid;
		aID = alb.getaID();
		name = alb.getName();
		description = alb.getDescription();
		if (alb.getListOfPictures().size() != 0){
			albumPic = new PictureCom(alb.getListOfPictures().get(0),uid);
		}else{
			albumPic = null;
		}
	}
}
